package com.example.studentmanager.model.extension;

import com.example.studentmanager.model.Course;

import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;
import java.util.List;

public class TeachCourse {
    @OneToMany
    @JoinColumn(name = "cid")
    private List<Course> courseList;

    public List<Course> getCourseList() {
        return courseList;
    }

    public void setCourseList(List<Course> courseList) {
        this.courseList = courseList;
    }
}
